home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pgpuam / sources / tpane.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.6 KB  |  54 lines

  1. //    TPane.h - base class for Dialog Pane Object
  2. // 
  3. // Apple Macintosh Developer Technical Support
  4. // Written by:  Vinnie Moscaritolo
  5. //
  6. //  Copyright (work in progress)  Apple Computer, Inc All rights reserved.
  7. //
  8. // You may incorporate this sample code into your applications without
  9. // restriction, though the sample code has been provided "AS IS" and the
  10. // responsibility for its operation is 100% yours.  However, what you are
  11. // not permitted to do is to redistribute the source as "DSC Sample Code"
  12. // after having made changes. If you're going to re-distribute the source,
  13. // we require that you make it clear in the source that the code was
  14. // descended from Apple Sample Code, but that you've made changes.
  15. // 
  16.  
  17. #ifndef _H_TPANE
  18. #define _H_TPANE
  19.  
  20. #include <Dialogs.h>
  21.  
  22. extern pascal OSErr AppendDialogItemList( DialogPtr dialog, SInt16 ditlID, DITLMethod method )
  23.  THREEWORDINLINE(0x303C, 0x0412, 0xAA68);
  24.  
  25.  
  26. // ---------------------------------------------------------------------------
  27. //     TPane  - base class for Dialog Pane Object
  28. // ---------------------------------------------------------------------------
  29. // 
  30. class TPane
  31. {
  32. public:
  33.   
  34. //     CONSTRUCTORS AND DESTRUCTORS
  35.               TPane( DialogPtr dialog, SInt16 origItems) :
  36.                       fDialog(dialog), fOrigItems(origItems) { };
  37.              
  38.     virtual  ~TPane() { };        
  39.  
  40. // MAIN INTERFACE
  41.     virtual void Refresh() { };
  42.     virtual void ItemHit(SInt16 item) { };
  43.     virtual void Idle()     { };
  44.     virtual Boolean HandleMouseDown(EventRecord *) { return false; };
  45.    
  46. // PRIVATE FIELDS
  47. protected:
  48.     DialogPtr     fDialog;
  49.     SInt16         fOrigItems;
  50.     
  51. };
  52.  
  53. #endif
  54.